<!--<include file="public+header">-->

<!--{~$sCalendarLang=Core_Extend::calendar()}-->
<script type="text/javascript" src="<!--{:__PUBLIC__}-->/js/calendar/datepicker/WdatePicker.js"></script>

<!--{script}-->
function insertEventcover(nAttachmentid){
	insertAttachmentthumb('jiajupackage_thumb',nAttachmentid);
}

<!--<foreach for="arrConfigTitle">-->
function insertPackagebg<!--{$key}-->(nAttachmentid){
	insertAttachmentthumb('packagebg_<!--{$key}-->',nAttachmentid);
}
<!--</foreach>-->

checkForm(SubmitFormCheckform);
<!--{/script}-->

	<section class="secondary_bar">
		<div class="breadcrumbs_container">
			<article class="breadcrumbs"><a href="<!--{:Q::U('public/fmain')}-->"><!--<lang package='Template'>-->主页<!--</lang>--></a> <div class="breadcrumb_divider"></div> <a class="current"><!--<if condition="empty( $nId )" >-->添加家装套餐<!--<else/>-->编辑家装套餐<!--</if>--></a></article>
		</div>
	</section>

	<section id="main" class="column">
		<article class="module width_full">
			<header><h3><!--<lang package='Template'>-->操作提示<!--</lang>--></h3></header>
			<div class="module_content">
				<ul>
					<li>温馨提示：封面图片推荐请使用<span style="color:#ED145B;">300*200</span>格式的图片。</li>
				</ul>
			</div>
		</article>

		<article class="module width_full">
			<header><h3 class="tabs_involved"><!--<if condition="empty( $nId )" >-->添加家装套餐<!--<else/>-->编辑家装套餐<!--</if>--></h3>
				<ul class="tabs">
					<li class="active"><a href="<!--{:Q::U('jiajupackage/index')}-->">家装套餐列表</a></li>
				</ul>
			</header>
			<form action="" method="post" id="jiajupackageAdd" class="validate">
				<div class="module_content">
					<fieldset>
						<label><b style="color:#ED145B;">基本资料</b></label>
					</fieldset>
					<fieldset>
						<label for="jiajupackage_title">家装套餐标题</label>
						<input type="text" name="jiajupackage_title" id="jiajupackage_title" size="40" value="<!--<if condition="isset( $oValue )">--><!--{$oValue:jiajupackage_title}--><!--</if>-->" class="{required:true,maxlength:100}"/>
						<div class="description input_tips">家装套餐标题不能为空，最多100个字符</div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="jiajupackage_thumb">家装套餐缩略图&nbsp;<span class="red" style="cursor:pointer;" onclick="$('#jiajupackage_thumb').val('');">x</span></label>
						<input style="float:left;width:400px;" type="text" id="jiajupackage_thumb" name="jiajupackage_thumb" value="<!--{if isset($oValue)}--><!--{$oValue['jiajupackage_thumb']}--><!--{/if}-->" readonly onmouseover="globalPreviewImg('jiajupackage_thumb');" onmouseout="unglobalPreviewImg('jiajupackage_thumb');" class="{required:true}"/>
						<input type="button" class="alt_btn" onclick="globalAddattachment('insertEventcover',1,1);" value="<!--<lang package='__COMMON_LANG__@Common'>-->媒体<!--</lang>-->">
						<div class="description input_tips clear">从附件管理器中选择</div>
						<p class="input_errortips"></p>
						<div id="jiajupackage_thumb-preview"></div>
					</fieldset>
					<fieldset>
						<label for="jiajupackage_price">家装套餐价格</label>
						<input type="text" name="jiajupackage_price" id="jiajupackage_price" size="40" value="<!--<if condition="isset( $oValue )">--><!--{$oValue:jiajupackage_price}--><!--</if>-->" class="{required:true,number:true,min:0}"/>
						<div class="description input_tips">家装套餐价格，单位元/平米。</div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="jiajupackage_firstprice">家装套餐原价</label>
						<input type="text" name="jiajupackage_firstprice" id="jiajupackage_firstprice" size="40" value="<!--<if condition="isset( $oValue )">--><!--{$oValue:jiajupackage_firstprice}--><!--</if>-->" class="{required:true,number:true,min:0}"/>
						<div class="description input_tips">家装套餐原价，单位元/平米。</div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="jiajupackage_intro">家装套餐简介</label>
						<textarea type="text" name="jiajupackage_intro" id="jiajupackage_intro" class="{required:true,maxlength:250}" style="height:70px;"><!--<if condition="isset( $oValue )">--><!--{$oValue:jiajupackage_intro}--><!--</if>--></textarea>
						<div class="description">最多250个字</div>
					</fieldset>
					<fieldset>
						<label for="jiajupackage_sort"><!--<lang package='Template'>-->序号<!--</lang>--></label>
						<input type="text" name="jiajupackage_sort" id="jiajupackage_sort" size="40" value="<!--<if condition="isset( $oValue ) && $oValue:jiajupackage_sort">--><!--{$oValue:jiajupackage_sort}--><!--<else/>-->0<!--</if>-->" class="{required:true,digits:true,min:0,max:999}"/>
						<div class="description input_tips">家装套餐序号，用于排列家装套餐顺序</div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="jiajupackage_default">套餐默认背景主题包</label>
						<select name="jiajupackage_default" id="jiajupackage_default">
							<option value="1" <!--{if isset( $oValue ) && $oValue['jiajupackage_default']==1}-->selected<!--{/if}-->>主题包1</option>
							<option value="2" <!--{if isset( $oValue ) && $oValue['jiajupackage_default']==2}-->selected<!--{/if}-->>主题包2</option>
							<option value="3" <!--{if isset( $oValue ) && $oValue['jiajupackage_default']==3}-->selected<!--{/if}-->>主题包3</option>
							<option value="4" <!--{if isset( $oValue ) && $oValue['jiajupackage_default']==4}-->selected<!--{/if}-->>主题包4</option>
						</select>
						<div class="description input_tips">家装套餐每一项如果没有上传背景图默认填充套装。</div>
						<p class="input_errortips"></p>
					</fieldset>
					<!--<foreach for="arrConfigTitle">-->
					<!--{if $key==0}-->
					<fieldset>
						<label><b style="color:#ED145B;">标准配置</b></label>
					</fieldset>
					<!--{/if}-->
					<!--{if $key==6}-->
					<fieldset>
						<label><b style="color:#ED145B;">主材品牌</b></label>
					</fieldset>
					<!--{/if}-->
					<fieldset>
						<label for="packagecontent_<!--{$key}-->"><!--{$value}--></label>
						<textarea name="packagecontent[<!--{$key}-->]" id="packagecontent_<!--{$key}-->" class="{maxlength:500}" style="height:70px;"><!--<if condition="isset( $oValue )">--><!--{if isset($arrConfigData[$key][1])}--><!--{$arrConfigData[$key][1]}--><!--{/if}--><!--</if>--></textarea>
						<p>
							<input style="float:left;width:400px;" type="text" id="packagebg_<!--{$key}-->" name="packagebg[<!--{$key}-->]" value="<!--<if condition="isset( $oValue )">--><!--{if isset($arrConfigData[$key][0])}--><!--{$arrConfigData[$key][0]}--><!--{/if}--><!--</if>-->" readonly onmouseover="globalPreviewImg('packagebg_<!--{$key}-->');" onmouseout="unglobalPreviewImg('packagebg_<!--{$key}-->');"/>
							<input type="button" class="alt_btn" onclick="globalAddattachment('insertPackagebg<!--{$key}-->',1,1);" value="<!--<lang package='__COMMON_LANG__@Common'>-->媒体<!--</lang>-->">
						</p>
						<div class="description input_tips clear">家装套餐详细内容，最多500个字符</div>
						<p class="input_errortips"></p>
						<div id="packagebg_<!--{$key}-->-preview"></div>
					</fieldset>
					<!--</foreach>-->
				</div>
				<footer>
					<div class="submit_link">
						<input type="hidden" name="ajax" value="1">
						<input type="hidden" name="id" id="id" value="<!--<if condition="isset( $nId )">--><!--{$nId}--><!--</if>-->"/>
						<input type="submit" id="submit_button" value="" class="alt_btn">
						&nbsp;<input type="reset" value="<!--<lang package='Template'>-->重置<!--</lang>-->">
					</div>
				</footer>
			</form>
		</article>

<!--<include file="public+footer">-->